package org.example;

import org.junit.Test;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;

public class Hello {
    @Test
    public void hello() throws UnsupportedEncodingException {
        System.out.println("ninhao");
        String value = URLEncoder.encode("小狗蛋","UTF-8");
        System.out.println(value);
        System.out.println(URLDecoder.decode(value,"UTF-8"));
    }
}
